//
//  TimeReuest.m
//  timelyRain
//
//  Created by Jiafei Wei on 16/10/13.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "TimeReuest.h"
#import "HttpTool.h"
#define apiUrl @"http://www.aiaiaini.com/demo/web/index.php?r=api"
#define uploadUrl @"/file/upload&user_id="//文件上传
#define downloadUrl @"/file/download"

#define getChatRecord @"/chat/get-records"//获取聊天记录
#define uploadChatRecodeUrl @"/chat/upload-record&user_id="//上传聊天记录
#define easeUpLoadFile @"/chat/up-file"

#define getsportRecord @"/sport/get-sports"
#define getsportrecorditem @"/sport/get-paths"
#define getStatistics @"/sport/get-statistics"

#define getTodayStep @"/step/get-today"
#define getTodayStepList @"/step/get-today"
#define getRankStep @"/step/get-walks"

#define saveSetting @"/setting/save"
#define getSetting @"/setting/get-settings"
@implementation TimeReuest
//获取聊天记录
-(void)getRecords:(id)pararms{
    //传入userid和页数@{@"user_id":@"",@"page":@1}
    [HttpTool GET:[apiUrl stringByAppendingString:getChatRecord] WithHeader:NO parameters:@{@"user_id":@"",@"page":@1} success:^(id responseObject) {
        //
    } failure:^(NSError *error) {
        NSLog(@"failure");
    }];//
}
@end
